import request from '@/utils/request'
export default {
    //1 banner列表
    getBannerList(current,limit) {
        return request({
            url: '/cmsservice/banner/pageBanner/'+current+"/"+limit,
            method: 'get'
          })
    },
    //添加讲师
    addBanner(crmBanner) {
        return request({
            url: '/cmsservice/banner/addBanner',
            method: 'post',
            data: crmBanner
          })
    },
    getBanner(id) {
        return request({
            url: '/cmsservice/banner/getBanner/'+id,
            method: 'get'
          })
    },
    updateBanner(crmBanner) {
        return request({
            url: '/cmsservice/banner/updateBanner',
            method: 'post',
            data: crmBanner
          })
    },

}
